﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    public enum npcType
    {
        WorkNpc,//任务
        ShopNpc,//商贩
        IronNpc,//铁匠
    }
     abstract class NPC
    {
        private string name;
        private npcType type;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public npcType Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPC(string name, npcType type)
        {
            this.Name = name;
            this.Type = type;
        }
        public NPC()
        { 
        }
        public abstract void Speak();

    }
}
